<?php
namespace App\Models\Relations;

/**
 *
 * @author Joker
 *        
 */
trait JobsTrait
{
    public function jobBelongs()
    {
        return $this->belongsTo('App\Models\CompanyJobs', 'job_id');
    }
    
    public function jobs()
    {
        return $this->hasOne('App\Models\CompanyJobs','jobs_id','job_id');
    }
}